<?php

namespace App\Controller\Wap;

use App\Entity\ShopGoods;
use App\Entity\UserAddress;
use App\Entity\UserLikesProduct;
use App\Model\AreaModel;
use App\Model\CityModel;
use App\Model\ProvinceModel;
use App\Model\ShopGoodsModel;
use App\Model\UserAddressModel;
use App\Model\UserLikesProductModel;
use App\Base\BaseController4User;
use App\Model\LazyCommon\CCM;
use App\Model\LazyCommon\PlatConfigModel;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;

class ScanController extends BaseController4User
{
    /**
     * @route("/scan",name="UserAppScan")
     */
    public function UserAppScan()
    {
        if(!$code = $this->getParamRequired("code")){return $this->json_out(0,"");}
        $this->data["code"] = $code;
        return $this->render("App/Wap/scan.php.twig",$this->data);
    }
}
